import os.path
def processDirectory ( args, dirname, filenames ):
    print 'Directory',dirname
    for filename in filenames:
        print ' File',filename
os.path.walk(r'c:\\windows', processDirectory, None )